// 注意写在这边会有bug,退出登录仍是上次值
// 解决办法 再main的自定义指令里面获取localStorage 然后传参进来
// let buttons = localStorage.getItem("permission-buttons") 
export default (buttons,permission) =>{
    // console.log(permission);
    // console.log(buttons);
    let res = buttons.includes(permission)
    return res

}